package com.jtjrenren.android.taxi.passenger.utils;


/**
 * Created by Administrator on 2016/3/29.
 */
public class ModuleAdapter {
    public static int changeLocLevToServiceLevel(int level) {
        int wl = 0;

        switch (level) {
            case 5:
                wl = 0;
                break;
            case 4:
                wl = 4;
                break;
            case 3:
                wl = 1;
                break;
            case 2:
                wl = 3;
                break;
            case 1:
                wl = 2;
                break;
        }

        return wl;
    }

    public static int changeevServiceLevelToLocL(int level) {
        int wl = 0;

        switch (level) {
            case 0:
                wl = 5;
                break;
            case 4:
                wl = 4;
                break;
            case 1:
                wl = 3;
                break;
            case 3:
                wl = 2;
                break;
            case 2:
                wl = 1;
                break;
        }

        return wl;
    }

    public static String getLevelDesc(int level) {
        String result = "";
        switch (level) {
            case 1:
                result = "不满意";
                break;
            case 2:
                result = "一般";
                break;
            case 3:
                result = "满意";
                break;
            case 4:
                result = "比较满意";
                break;
            case 5:
                result = "非常满意";
                break;
        }
        return result;
    }

}
